/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class DimmerSwitch {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010010054';
    }

    get categoryName() {
        return '\u8c03\u5149\u5f00\u5173';
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'ppAXp3yU',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peHyXVJw',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default DimmerSwitch;
